//
//  HHPMediatorManager+Living.m
//  HHPLiveVideo
//
//  Created by 韩红坡 on 2017/4/25.
//  Copyright © 2017年 韩红坡. All rights reserved.
//

#import "HHPMediatorManager+Living.h"

NSString * const kMediatorTargetLiving = @"Living";
NSString * const kMediatorActionPresentLivingViewControllerWithDictionary = @"presentLivingViewControllerWithDictionary";


@implementation HHPMediatorManager (Living)

- (void)mediator_presentLivingViewControllerWithLiveArray:(NSMutableArray *)liveArray currentLiveIndex:(NSUInteger)index
{
    NSMutableDictionary *dict = [NSMutableDictionary dictionary];
    [dict setObject:liveArray forKey:@"liveArray"];
    [dict setObject:[NSNumber numberWithInteger:index] forKey:@"index"];
    [self nativeCallModuleWithTarget:kMediatorTargetLiving action:kMediatorActionPresentLivingViewControllerWithDictionary params:dict];
}

@end
